package cn.stylefeng.guns.modular.business.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 用户账户
 * </p>
 *
 * @author pzp
 * @since 2019-08-04
 */
@Data
@TableName("c_user_account")
public class UserAccount implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "pay_id", type = IdType.AUTO)
    private Integer payId;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 真实姓名
     */
    @TableField("real_name")
    private String realName;

    /**
     * 交易方式：0：支付宝，1：微信，2：银行卡,3:余额
     */
    @TableField("pay_mode")
    private Integer payMode;

    /**
     * 账户
     */
    @TableField("account")
    private String account;

    /**
     * 开户行
     */
    @TableField("bank")
    private String bank;

    /**
     * 是否删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;


    @Override
    public String toString() {
        return "UserAccount{" +
        "payId=" + payId +
        ", userId=" + userId +
        ", payMode=" + payMode +
        ", account=" + account +
        ", bank=" + bank +
        ", deleteFlag=" + deleteFlag +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
